package lab2p1;

/**
 * <p>Title: SimpleGUI</p>
 * <p>Description: CS 235 Lab #2</p>
 *         Example of a simple Java graphical user interface program using Swing.
 * @author Anthony Varghese
 * @date   August 8th 2013
 * @team   
 */

import javax.swing.JFrame;
import javax.swing.JSpinner;

public class SimpleGUI extends JFrame {
	/**
	 * Default serial version id so we don't get compiler warnings.
	 */
	private static final long serialVersionUID = 1L;

	private JSpinner spin;

	public SimpleGUI(String title) {
		super(title);
		
		setBounds( 200, 100, 400, 300 );
		setLayout( null );
		
		spin = new JSpinner( );
		spin.setBounds( 100, 100, 60, 30 );
		add( spin );
		
		setDefaultCloseOperation( EXIT_ON_CLOSE );
		setVisible( true );
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SimpleGUI window = new SimpleGUI( "Checking out GUIs" );
	}
}
